/*
 * Copyright (C) 2023 xuexiangjys(xuexiangjys@163.com)
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *       http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 */

package com.xuexiang.templateproject.bean;

//import anet.channel.strategy.dispatch.DispatchConstants;
import kotlin.Metadata;
import kotlin.jvm.internal.Intrinsics;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

public final class QueryFinishEntity {
    private final boolean finish;
    @NotNull
    private final String pdfUrl;
    @NotNull
    private final String previewUrl;
    @NotNull
    private final String wordUrl;

    public QueryFinishEntity(boolean z, @NotNull String pdfUrl, @NotNull String wordUrl, @NotNull String previewUrl) {
        Intrinsics.checkNotNullParameter(pdfUrl, "pdfUrl");
        Intrinsics.checkNotNullParameter(wordUrl, "wordUrl");
        Intrinsics.checkNotNullParameter(previewUrl, "previewUrl");
        this.finish = z;
        this.pdfUrl = pdfUrl;
        this.wordUrl = wordUrl;
        this.previewUrl = previewUrl;
    }

    public static /* synthetic */ QueryFinishEntity copy$default(QueryFinishEntity queryFinishEntity, boolean z, String str, String str2, String str3, int i2, Object obj) {
        if ((i2 & 1) != 0) {
            z = queryFinishEntity.finish;
        }
        if ((i2 & 2) != 0) {
            str = queryFinishEntity.pdfUrl;
        }
        if ((i2 & 4) != 0) {
            str2 = queryFinishEntity.wordUrl;
        }
        if ((i2 & 8) != 0) {
            str3 = queryFinishEntity.previewUrl;
        }
        return queryFinishEntity.copy(z, str, str2, str3);
    }

    public final boolean component1() {
        return this.finish;
    }

    @NotNull
    public final String component2() {
        return this.pdfUrl;
    }

    @NotNull
    public final String component3() {
        return this.wordUrl;
    }

    @NotNull
    public final String component4() {
        return this.previewUrl;
    }

    @NotNull
    public final QueryFinishEntity copy(boolean z, @NotNull String pdfUrl, @NotNull String wordUrl, @NotNull String previewUrl) {
        Intrinsics.checkNotNullParameter(pdfUrl, "pdfUrl");
        Intrinsics.checkNotNullParameter(wordUrl, "wordUrl");
        Intrinsics.checkNotNullParameter(previewUrl, "previewUrl");
        return new QueryFinishEntity(z, pdfUrl, wordUrl, previewUrl);
    }

    public boolean equals(@Nullable Object obj) {
        if (this == obj) {
            return true;
        }
        if (!(obj instanceof QueryFinishEntity)) {
            return false;
        }
        QueryFinishEntity queryFinishEntity = (QueryFinishEntity) obj;
        return this.finish == queryFinishEntity.finish && Intrinsics.areEqual(this.pdfUrl, queryFinishEntity.pdfUrl) && Intrinsics.areEqual(this.wordUrl, queryFinishEntity.wordUrl) && Intrinsics.areEqual(this.previewUrl, queryFinishEntity.previewUrl);
    }

    public final boolean getFinish() {
        return this.finish;
    }

    @NotNull
    public final String getPdfUrl() {
        return this.pdfUrl;
    }

    @NotNull
    public final String getPreviewUrl() {
        return this.previewUrl;
    }

    @NotNull
    public final String getWordUrl() {
        return this.wordUrl;
    }

    public int hashCode() {
        boolean z = this.finish;
        if (z) {
            z = true;
        }
        int i2 = z ? 1 : 0;
        int i3 = z ? 1 : 0;
        int i4 = z ? 1 : 0;
        return (((((i2 * 31) + this.pdfUrl.hashCode()) * 31) + this.wordUrl.hashCode()) * 31) + this.previewUrl.hashCode();
    }

    @NotNull
    public String toString() {
        return "QueryFinishEntity(finish=" + this.finish + ", pdfUrl=" + this.pdfUrl + ", wordUrl=" + this.wordUrl + ", previewUrl=" + this.previewUrl + ')';
    }
}